#ifndef __GLEW_H__
#include <GL/glew.h>
#include <GL/wglew.h>
#endif
#include "StimTargetMoving.h"

CStimTargetMoving::CStimTargetMoving(const enum Stims::ObjType& eObjType_/* = Stims::Post*/)
:
CStimTarget(eObjType_)
{
}

CStimTargetMoving::~CStimTargetMoving(void)
{
}


void CStimTargetMoving::Update( const CMatrix<double>& mEyePos_, const double& dYaw_ )
{
    CMatrix<double> mTargetPos = _mTargetPosition;
    mTargetPos(2) += mEyePos_(2);
    
    glNewList(_uTarget,GL_COMPILE);

    glMatrixMode(GL_MODELVIEW);
    glPushMatrix();
    glTranslated(mTargetPos(0),-_dEyeHeight,mTargetPos(2));

    glCallList(_uObj);

    glPopMatrix();

    glEndList();

}

std::string CStimTargetMoving::GetName()
{
    return std::string("Target, Fixed position in the world");
}